import request from '@/utils/request'

// 获取列表
export function getList(token, data) {
  return request({
    url: 'access/employee_overtime_worker/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 添加
export function addInfo(token, data) {
  return request({
    url: 'access/employee_overtime_worker/add',
    method: 'post',
    params: { token },
    data
  })
}

// 删除
export function deleteInfo(token, data) {
  return request({
    url: 'access/employee_overtime_worker/delete',
    method: 'post',
    params: { token },
    data
  })
}

// 修改
export function editInfo(token, data) {
  return request({
    url: 'access/employee_overtime_worker/edit',
    method: 'post',
    params: { token },
    data
  })
}

// 获取单条数据
export function getInfo(token, data) {
  return request({
    url: 'access/festival/info',
    method: 'post',
    params: { token },
    data
  })
}

// 获取公司列表
export function getCompanyList(token, data) {
  return request({
    url: 'organization/company/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 获取部门列表
export function getDepartmentList(token, data) {
  return request({
    url: 'organization/department/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 获取员工列表
export function getStaffList(token, data) {
  return request({
    url: 'organization/employee/get_select',
    method: 'post',
    params: { token },
    data
  })
}
// 获取员工列表
export function getOvertimeList(token, data) {
  return request({
    url: 'access/employee_overtime/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 获取员工列表
export function addOvertime(token, data) {
  return request({
    url: 'access/service/editOvertime',
    method: 'post',
    params: { token },
    data
  })
}

// 获取班次列表数据（无分页）
export function getScheduleList(token, data) {
  return request({
    url: 'access/schedule/get_select',
    method: 'post',
    params: { token },
    data
  })
}
// 批量修改排班id
export function addSchedule(token, data) {
  return request({
    url: 'access/service/editPeriod',
    method: 'post',
    params: { token },
    data
  })
}
